<?php

namespace App\Http\Controllers;

use App\Contract\WorkerContract;
use Illuminate\Http\Request;

class WorkerController extends Controller
{
    protected $worker;
    
    public function __construct(WorkerContract $worker)
    {
        $this->worker = $worker;
    }
    
    public function index()
    {
        return $this->worker->callMe('worker controller with construct');
    }
}
